package cn.itcast.service.impl;

import cn.itcast.domain.City;
import cn.itcast.mapper.CityMapper;
import cn.itcast.service.CityService;
import cn.itcast.utils.MapperUtils;

import java.util.List;

public class CityServiceImpl implements CityService {
    //查询所有城市信息
    public List<City> findAll() {
        CityMapper mapper = (CityMapper) MapperUtils.getMapper(CityMapper.class);
        return mapper.findAll();
    }
}
